//
//  HAResponse.h
//  HAFund
//
//  Created by 夏成龙 on 2018/10/30.
//  Copyright © 2018年 夏成龙. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface HAResponse : NSObject

/** 返回对象 */
@property (nonatomic, strong, readonly) NSURLResponse *response;
/** 返回数据 */
@property (nonatomic, strong, readonly) id            responseObject;
/** 错误对象 */
@property (nonatomic ,strong, readonly) NSError       *error;
/** 是否成功 */
@property (nonatomic, assign, readonly) BOOL          isSuccess;
/**
 初始化
 */
- (instancetype)initWithResponse:(NSURLResponse *)response
                  responseObject:(id)responseObject
                           error:(NSError *)error;

@end
